import Vue from "vue"
import Router from "vue-router"

import Index from "../components/index.vue"
import Detail from "../components/Detail.vue"
Vue.use(Router)
export function createRouter() {
	return new Router({
		model:'history',
		routes:[
			{path:"/",component:Index},
			{path:"/detail",component:Detail} 
			
		]
		
	})
	
}
